module.exports = {
    testEnvironment: 'jsdom',
    transform: {
      '^.+\\.vue$': '@vue/vue3-jest',
      '^.+\\.js$': 'babel-jest'
    },
    moduleFileExtensions: ['js', 'jsx', 'json', 'vue'],
    transformIgnorePatterns: [
      '/node_modules/(?!axios)/'
    ],
    moduleNameMapper: {
      '^@/(.*)$': '<rootDir>/src/$1',
      '^element-plus/dist/(.*)$': '<rootDir>/node_modules/element-plus/dist/$1'
    },
    testEnvironmentOptions: {
      customExportConditions: ["node", "node-addons"],
    },
    coverageDirectory: 'coverage',
    collectCoverage: true,
    collectCoverageFrom: [
      'src/**/*.{js,vue}',
      '!src/main.js',
      '!src/router/index.js',
      '!**/node_modules/**'
    ]
  }
